package com.zjgsu.nftplatform.config;

import com.zjgsu.nftplatform.pojo.SwaggerProperties;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author ahy231
 * @date 2022/3/6 15:03
 * @description
 */
@Configuration
@EnableSwagger2
public class Swagger2Config extends BaseSwaggerConfig {
    @Override
    public SwaggerProperties swaggerProperties() {
        return SwaggerProperties.builder()
                .apiBasePackage("com.zjgsu.nftplatform")
                .title("gateway")
                .description("网关模块接口文档")
                .contactName("钟南海")
                .version("1.0")
                .enableSecurity(true)
                .build();
    }
}
